/**
 * 系统日志 Api
 * @type {TLogAlarmApi}
 */
const tlogAlarmApi = new class TLogAlarmApi extends BaseApi {
    constructor() {
        super('/api/tlogAlarm')
    }

    async updateViewStatusToViewed(id) {
        return (await rxajax.post(this.using(`/update-view-status-to-viewed/${id}`))).data
    }

    async notViewTotal() {
        return (await rxajax.get(this.using('/not-view-total'))).data.data
    }
}()